import React, { Component } from 'react'
import { Button } from 'antd';

export default class AntBtn extends Component {
    render() {
        const { children, fn, BtnType, url } = this.props
        return (
            <>
                <Button type={BtnType ? BtnType : ''} onClick={fn} href={url}>{children}</Button>
            </>
        )
    }
}